package com.sparrow.source.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sparrow.source.persistense.IasPerson;
import com.sparrow.source.persistense.IasUser;

import java.util.List;

/**
 * @author bryceyung
 * @since 2024/11/27
 */
public interface IIasPersonService extends IService<IasPerson> {

    /**
     * 批量新增或删除
     *
     * @param personList
     * @return
     */
    Boolean saveOrUpdateBatchByPersonId(List<IasPerson> personList);

    /**
     * 根据personId获取
     * @param personId
     * @return
     */
    IasPerson getByPersonId(Long personId);

    /**
     * 判断上报的人员信息是否与飞友一致
     *
     * @param personList
     * @return
     */
    Boolean uploadUnvPerson(List<IasPerson> personList);

}
